package poker;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;

public class DeckTest {
  Deck d1, d2;
  int i = 0;

  @Before
  public void setUp() throws Exception {
    d1 = new Deck();
    d2 = new Deck();
  }
  
  @Test
  public void porownanierozdan() {
    assertNotSame(d1,d2);
  }

  @Test
  public void liczbakart() {
    for (i = 0; i < 52; i++) {
      assertEquals(d1.getTotalCards(),52-i);
      d1.drawFromDeck();
    }
  }

}